package com.smart.service;

import java.math.BigInteger;
import java.util.Date;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smart.dao.BaseDao;
import com.smart.dao.LeadDao;
import com.smart.dao.Page;
import com.smart.model.Lead;
import com.smart.model.LeadCond;

/**
 * 
 * @author Sunxin
 *
 */
 
@Service
public class LeadServiceImpl extends BaseEntityService<Lead, LeadCond, Long> implements LeadService{

	@Autowired
	private LeadDao dao;
	
	@Override
	protected BaseDao<Lead, LeadCond, Long> getDao() {
		return dao;
	}

	@Override
	public Map<String, BigInteger> getLeadStat(String team, Date from, Date to) {
		return dao.getLeadStat(team, from, to);
	}

	@Override
	public Page<Lead> findByKeywords(LeadCond cond, String keywords) {
		return dao.findByKeywords(cond, keywords);
	}

	@Override
	public void distribute(Long userId) {
		
	}
	
	
}
